home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 E…tra 100 Bedste Programmer / K-CD_2004_Ekstra_100_Gratis_Programmer.iso / Windows / X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ AutoExit HungApps.xpl < prev    next >
Encoding:
XSetup plugin  |  2003-11-20  |  1.9 KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows NT/2K/XP\10) Program Shutdown"
  5. "UIPATH 2"="Startup/Shutdown\Shutdown\Windows 9x/ME\20) Shutdown Options"
  6. "NAME"="AutoEnd Programs"
  7. "VERSION"="1.15"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Auto End Hung Programs"
  10. "DESCRIPTION 1"="When the computer is about to be shut down, it is possible that a buggy or older program can't be ended because it locks up."
  11. "DESCRIPTION 2"="If this option is activated, the program is automatically terminated upon shut down."
  12. "DESCRIPTION 3"="If this option is deactivated, Windows displays an error message asking the user to terminate a non-responding program manually or perform a shut down."
  13. "DESCRIPTION 4"="Please note: This setting only affects the current user."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="Applies to all 32-bit Windows releases. Updated description."
  18. "COMMENT 2"="More info @ MS TechNet: http://www.microsoft.com/technet/winnt/regtwk.asp"
  19. "COMMENT 3"="More info @ MS TechNet: http://www.microsoft.com/technet/win2000/systeman.asp"
  20. "COMMENT 4"="Thanks to Wayne M. [wmartins@mn.rr.com] for the current user notice!"
  21.  
  22. 'Declaration of some constants
  23. sP="HKCU\Control Panel\Desktop\"
  24. sV1="AutoEndTasks"
  25.  
  26. 'Called when the Plugin is started
  27. Sub Plugin_Initialize
  28.  i=RegReadValue(sp & sv1)
  29.  if i=1 then SetUIElement 1,true
  30. End Sub
  31.  
  32. 'Called when the Plugin should validate the Data the user has entered
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36. 'Called when the Plugin should apply the changes
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  b=GetUIElement(1)
  39.  if b=true then 
  40.   Call RegWriteValue(sp&sv1,1,1)
  41.  else
  42.   Call RegWriteValue(sp&sv1,0,1)
  43.  end if
  44.  
  45. End Sub
  46.  
  47. 'Called when the Plugin is about to be removed from memory
  48. Sub Plugin_Terminate
  49. End Sub
  50.